boolean (PsiMethod method) { if (method == null) { return false; } final PsiClass aClass = method.getContainingClass(); if (aClass == null) { return false; } @NonNls final String qualifiedName = aClass.getQualifiedName(); if (qualifiedName == null || !qualifiedName.startsWith("java.") || qualifiedName.equals("java.lang.Thread") || qualifiedName.equals("java.lang.System") || qualifiedName.equals("java.lang.Runtime")) { return false; } final String methodName = method.getName(); return !"now".equals(methodName) && !"currentTimeMillis".equals(methodName) && !"nanoTime".equals(methodName) && !"waitFor".equals(methodName); }