@@ -0,0 +1,944 @@
+package edu.umd.cs.findbugs.testcases;%0A%0Aimport org.eclipse.jface.viewers.ISelectionProvider;%0Aimport org.eclipse.ui.IEditorPart;%0Aimport org.eclipse.ui.texteditor.ITextEditor;%0A%0Apublic class Bug3524078 %7B%0A    private IEditorPart editorPart;%0A    public IEditorPart getEditorPart() %7B%0A        return editorPart;%0A    %7D%0A    public void setEditorPart(IEditorPart editorPart) %7B%0A        this.editorPart = editorPart;%0A    %7D%0A    public ISelectionProvider getSelectionProvider() %7B%0A    if (editorPart == null) %7B%0A    return null;%0A    %7D%0A    if (editorPart instanceof ITextEditor) %7B%0A    return ((ITextEditor) editorPart).getSelectionProvider();%0A    %7D%0A    if (editorPart instanceof ISelectionProvider) %7B%0A    return (ISelectionProvider) editorPart; // %3C- Unchecked/unconfirmed cast from org.eclipse.ui.IEditorPart to org.eclipse.jface.viewers.ISelectionProvider in de.loskutov.anyedit.ui.editor.AbstractEditor.getSelectionProvider()%0A    %7D%0A    return null;%0A    %7D%0A%0A%7D%0A

add testcase for bug report