boolean (@NotNull JvmElement declaration) { return declaration instanceof JvmMethod && isMainMethod((JvmMethod)declaration) || declaration instanceof JvmClass && hasMainMethodInHierarchy((JvmClass)declaration); }