int (PsiFile psiFile, int originalLine) { VirtualFile file = psiFile.getVirtualFile(); if (file != null) { LineNumbersMapping mapping = file.getUserData(LineNumbersMapping.LINE_NUMBERS_MAPPING_KEY); if (mapping != null) { int line = mapping.bytecodeToSource(originalLine + 1); if (line > -1) { return line - 1; } } } return -1; }