boolean (PsiMethod method) { PsiClass containingClass = method.getContainingClass(); if (containingClass == null) return false; String classQualifiedName = containingClass.getQualifiedName(); return classQualifiedName != null && (classQualifiedName.startsWith("java.") || classQualifiedName.startsWith("javax.") || classQualifiedName.startsWith("jakarta.")); }