boolean (@NotNull JvmClass clazz) { if (clazz.getQualifiedName() == null) return false; // anonymous and local classes final JvmClassKind kind = clazz.getClassKind(); if (kind == JvmClassKind.ANNOTATION) return false; return clazz.getContainingClass() == null || clazz.hasModifier(JvmModifier.STATIC); }