String (final PsiClass aClass) { String noun; int kind = getClassKind(aClass); switch (kind) { case CLASS_KIND_ANNOTATION: noun = JavaPsiBundle.message("node.annotation.tooltip"); break; case CLASS_KIND_ANONYMOUS: noun = JavaPsiBundle.message("node.anonymous.class.tooltip"); break; case CLASS_KIND_ENUM: noun = JavaPsiBundle.message("node.enum.tooltip"); break; case CLASS_KIND_RECORD: noun = JavaPsiBundle.message("node.record.tooltip"); break; case CLASS_KIND_EXCEPTION: noun = JavaPsiBundle.message("node.exception.tooltip"); break; case CLASS_KIND_INTERFACE: noun = JavaPsiBundle.message("node.interface.tooltip"); break; case CLASS_KIND_JUNIT_TEST: noun = JavaPsiBundle.message("node.junit.test.tooltip"); break; case CLASS_KIND_RUNNABLE: noun = JavaPsiBundle.message("node.runnable.class.tooltip"); break; default: case CLASS_KIND_CLASS: noun = JavaPsiBundle.message("node.class.tooltip"); break; } return noun; }