boolean (final Object object, final JavaSmartCompletionParameters parameters) { if (!"getClass".equals(((PsiMethod)object).getName())) return false; final PsiType type = parameters.getDefaultType(); @NonNls final String canonicalText = type.getCanonicalText(); if ("java.lang.ClassLoader".equals(canonicalText)) return true; if (canonicalText.startsWith("java.lang.reflect.")) return true; return false; }