String (Object... infos) { @NonNls final String text = ((PsiElement)infos[0]).getText(); if ("random".equals(text)) { return InspectionGadgetsBundle.message( "unsecure.random.number.generation.problem.descriptor1"); } else if ("Random".equals(text)) { return InspectionGadgetsBundle.message( "unsecure.random.number.generation.problem.descriptor2"); } else { return InspectionGadgetsBundle.message( "unsecure.random.number.generation.problem.descriptor3"); } }