Java tutorial
//package com.java2s; public class Main { private static String preMethodName; private static boolean isScreenShotMethodChanged(StackTraceElement element) { if (element.getMethodName().equals(preMethodName)) { return false; } return true; } }